package com.yanxml.spring.history.v3.demo0_component_scan_xml.config;

import com.yanxml.spring.history.v3.demo0_component_scan_xml.service.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

@Configuration
@ImportResource("classpath:applicationContext.xml")
public class JavaConfig {

    @Bean
    public UserService userService() {
        return new UserService();
    }
}
